﻿using System.Collections.Generic;
using DataBaseLayer.Dto;

namespace DataBaseLayer.Abstractions.Interfaces.Services
{
	public interface INewsService
	{
		int GetCountNews();

		IEnumerable<NewsData> GetNewsByPageNumber(int pageNumber, int countNews);

		NewsData GetNewsById(int newsId, int countNewsOnPage);

		IEnumerable<NewsData> GetNews();

		void UpdateNews(NewsData news);

		void CreateNews(NewsData news);

		void DeleteNewsById(int id);
	}
}
